'''
Created on Oct 14, 2014

@author: azhelezny
'''
from _io import open

lineNumber = 0

outputFile = open("d:\\output.txt",'w')
inputFile = open("d:\\file.txt", 'r') 

while 1:
    lineNumber+=1
    fileString=inputFile.readline()
    if(not fileString):
        break 
    if(lineNumber %2 ==0):
        outputFile.write(fileString)

outputFile.close()
inputFile.close()